fiddling with middleware order