move loadConfig into "private" stuff