added support for a manual profile, also allows setting the heap size of worker and manager instances