got rid of some todos, added maxRecordLength and threadpool size opts