added basic functionality for watching files