fixes #9 Adding fix for data consistency and working on implementing new sync operation