more tweaks so the modbus client now works