add support for macosx