basic editing and document unpacking