improved repo fetching