changed conventional registration api