add ability to set maxHeapSize