master is client as well