middleware classes added and initial setup of them