api: implemented add_watcher.