serving up URLs and fixing sorting