finish load_icode