added global state object