make OSX stuff more smart
mac fixes