corrected function protos for before()/after()