move flags to request options