added getValue method to store fetch messages