add middleware
stuff
added a rack middle to to display errors
add configuration