[wip] registration api