add role for master and slave
add role for master and slave