finished first api:register