sort out relative urls
futher metadata cleanup