generator for datastore consistency