updated modbus to have priority inputs