update signature of before & after methods. addresses issue #18