add switch between mgr and app