fix exit point find reference in sub machine, set naming with copy of submachine