add ec for mac