patch register flow