added add-watch function