added generation of internal calls (as subsystems...not good)