first version material macro support.