added macro support for scripts