added failure function for fetching github repos