make it more compatible with osx