modified watchdog and multipletask module