remove duplicate getUserAgent