add support for MAC OSX