added missing configuration idioms middleware and models