made FileWatcher conform to new, non-depricated MainLoop API