fixed reading of config file from a filename