fixed config file parsing