improvements to refresh_related_bugs