add the state queries