proper check for user agent on API v1