added atomic rename to partition file io