ensuring user agent recorded, and few helpers added