support hierarchical configuration files based on env vars or file