add reference to rails atomic_write