fixes for routing and params in older rack versions