set memory store as default
added some functions that can be used for testing etc