remove express-ism in connect middleware