refactored code to load separate files per site.