simplify reading config