moved variables from appspecific to global