clean up wrapper