some modbus tweaks for loggin