update for new inventory api