Lib: document position

improve handling of document_position