add check os for mac