prepare slave