parse state waiting as well