connect middleware for urlgrey