copy in old code to new fetch script