use $prefix for base_path