add watch dog feature