embed, switch, and xout