compiles and ai switching in place