switching to slave