adding user agent option, defaulting to 'metadata request'