add maxBuffer option to execOpts