use APP_ENV to set debug value