remove macro invoke from function like 1.x
fixes load global macro files