added support for macos