legacy url
better middleware