added check if apple machine