correct check_path