dirty fixes to url and cookie models. need to be refactored.