added wdt initialization fun and defines