added client code to request all cached msgs.