account for nil path_info