add fix for macs