fix isState definition
start on code updates to match new spec