adding mips handling