make inheretance for workers and workerMasters