add first version of IR protocol, tested over wire