Fixed read configs from element B first, and read local config file if B has no response. if use local config file, must have all of the config according to cfg struct.