added ability to specify max request size limit