moving upstream connection handing to inline for dynamic routing