updated func protos for before()/after()