almost done with load_icode