some small adaptions for osx