skeleton of master process done (?)