make sure the writes happen in order