added params for setting up a slave