added a new middleware to the base settings files