template update(mac condition support)

updated template to finally support the macx condition. Which now works
with a work around to the initializer_list problem.