make read_configs() recursive