more generic version of the modbus slave