register macros to latteFactory