add option to disable user agent validation