make it works on Mac OSX