menu building & state pipeline