removed middleware loading