Simplify $config logic
todo
fix start -> startState in example