read slave code