allow before/after fn on request definition