add watch function to watch for new files