support connect middleware embedded