nick: add parsing of location and url