update pathogen dynamically