update to use changed api