using process.env for app mode