more use of global $user_agent vs parameter passing static info