add support for mac osx