added support for user agent detection