change N to APP_INSTANCE