implemented inmemory store and publisher