added global state subscription