fix before/after methods, include in 1.0.1