not writing file changes (bug?)