proper check for user agent on API v2