make OSX works