added MakeWorker function to init a new worker