rewriting with protocols (xml currently broken)
xml sorted, by bringing an old prxml in locally.