fixed trivia
updated User-Agent
fixed  error messages
because "res" might be None