added more logging
don't reprocess same doc_id