removed unnecessary valid_path? method