updated docs for before() and after()