preparing the slave for the session