format the master/worker client code