loader - add pathogen encoding logic

loader - add pathogen encoding logic