handle long URLs more gracefully