add register API