storing global builder state inside builder