added OnMachineConnect/OnMachineDisconnect to fix issue with hash validation.