proper deserializer making using of iterators rather than buffers.