fix several problems with config parser: