added mac/linux only checks