added support for customising HTTP options