added error_code to project, added watchdog,