slave codes running up to login