fixed with_base_path helper method