fix suffix typo, take io out of state