add createquerystring and makeurlfromstring functions