changes to works with mac osx