added macro support for views