add appState global module