replacing base_path with pathname & adding env.BASE_PATH