primitive ui api continuation