changed format of inner stateFunc calls
remove rune arg from stateFunc
todo
only allow single quoted attribute values