added auto load macros + tests