environmental variable detection should be moved to a separate function and not just added here in the init part... as i suspect that later on we'll have other env variables as well...