refactor to remove usage of global variable.
codify order of source parsers. site-specific parsers first, then generics.