removed currently unnecessary middleware, and migrated to express 4