enable rpc, move watchdog definition down