added watchdog to detect disconnects, support for reset command