added mac_gl_template