handle user agent with family and version