fixing problems for OSX