originally had it in a seperate file, but I didnt want to poke holes and add extra apis to get it into scope so moved it within webresults, I think its better contained that way