use myApp namespace for key variables

Problems with variable scope