updated app env, and debug mode