added ENVRED_APP_NAME env variable support