moved creation of app context into constructor