set largeHeap to true to avoid outofmemory