improved response content-type autogen; fixed path routing