Mac os compatibility (notify2 optional).