wrapdefine: change the wrapping logic of app module