put global state inside a binding