restructured worker code (manager, worker, processor instead of single command)