Tried to add support of macos