move logger middleware above serve