- changed hash generating to urlencode