added a module to store the global state