global state in separated module