added an application class, for globalstates