refactor to use reactor and events
increase heap size