putting mac specific stuff in cond