add connect style middleware system