make config parsing more tolerant