Refactor watch command to support to use the _config.yaml file, add thread variable required when we must kill the thread