added support for OS X