migrated middleware from Connect to Express
migrated middleware from Connect to Express