config: pass the config path prefixes as a parameter