added logData, removed watchdog