adding support for OS X