url parsing and serializing