adding more consistency to writes
Merge pull request #557 from jovanchohan/write_consistency

adding more consistency to writes