wrote index/datastore transaction decorator