fixes for ActionDispatch::Request