moved the user agent stuff to the beginning