doing some optimization on getCONfig as part of #125