updated code and folder structure to support pathogen