made the logic for the Slave_running determination a bit cleaner