changed default maxRecordlength to 50k characters