sets instance as app id in app