made master/slave to cluster work