fixes in package_module with file manipulations