load middleware classes in base settings