added dispatcher interface and refactored memory store to also dispatch