better detect mac