use env var for app id