rewrite watcher