use env for configs. remove unused configs
part 2 of configs