changes for multiple protocols support (pimatic/rfcontroljs#14)