fixed plugin so that it does not squash the function wrapper
3.0.1