add support for document slug references