BAPCPA also limited the applicability of the automatic stay in eviction proceedings. The stay does not stop an eviction proceeding if the landlord has already obtained a judgment of possession prior to the bankruptcy case being filed, § 362(b)(22). The stay also would not apply in a situation where the eviction is based on "endangerment" of the rented property or "illegal use of controlled substances" on the property, § 362(b)(23). In either situation the landlord must file with the court and serve on the debtor a certificate of non-applicability of the stay spelling out the facts giving rise to one of the exceptions. There is a process for the debtor to contest the assertions in the landlord's certificate or if state law gives the debtor an additional right to cure the default even after an order for possession is entered, § 362(l) & (m).