add connect middleware
add middle ware
add logger