make sure not to leave statefile then validation failed