user agent stuff now working