added path_exists