added some mac stuff