trying to make adding middleware easier
request logger working, needs some cleaning up