fixed file watching in server provider.