add appInstance API