add first implementation of a global state