lots of code cleanup for ifxmips