fixes and default values added
middlewaresBefore and After auth added