set version and default user-agent header