added flesh to the worker and the master code