moved api params from query string to param object