changes for comwrapper and res leaks