move maxBytes to options