add the document to core system