move our logger to middleware