watch for a file change and then do something