move summary fetching to its own file