add (bool, error) return values to (*State).Resume