basic master and worker