added a module name replacement feature