add global before and after func