wrapapp takes a pointer