restructured xpiler