addes support for host, basepath and schemes