add url serialize and deserialize method