removed middleware from settings