made file watching configurable