adjust for new format of api discovery response