parse user-agent on server side