added relays handlers