first working version of gearman worker and manager