refactored slurping template into function
refactored extractors out, and reduced calls to fetch-url
refactored extraction and merging into seperate functions