added support for mandatory user-agent overriding