fixing setSlavesHandler