added mac osx support