rework the get_lead functions