some more meat around config parsing