init AppManager.