replaced module_locater with real_path for base_path