remove the module name in path