Made config reading better