safe base_path