add osx detection