some fix for OSX