fixes for osx...