cleanup adapter
add functionality to call an updating function
prevent a document from getting added multiple times in the document manager