writing file sync module