changed params to be url-encoded