fixed config parser