add support for MacOS