cleaned up ixmap_main.c