enhanced InitializeMacros to invoke functions in macro-records