using path_info only if available