move get parameters into the restclient