collapsing some repeated code into private method getConfigDouble