allow override of state parameter by client