refactor ENV var config usage