some work on master+slave