allow better message passing between master and worker