cmix

more porting