serializer/de-serializer of document done