decoupled http server, reenabled middleware