- update barbot code to respond to relay states.