monitor for file changes and loop