fixes #120, provide variable to store the document id