can now switch be tween memory and data store