update to improved discover api