first attempt at making threads work on mips