read master and worker