significant improvements; basic skeleton of worker_engine and its do_run() method