add support for mac user-agent recognition