porting from spirit v2 to x3