fix StateId, work on config traverser, fix generation compilation