remove old files
fix the ambiguous document_id issue