discovery fetcher, fix variable scoping (whoops)