changed sdk flow