wip import of spice-xpi