add operator[] for config class