handle parsing of variables from url