fixed darwin checks