add function name init (missed when moving externalcalls here)