almost done with support for deserializing replies. Just need to fix a bug.