split out xapi sm build