refactored worker and made the launch work on OSX/16G machine