add support for Mac OSX