added master and worker