updated version for new features of memory store.