cleanup and add pathogen