fixed reading config