Improved configParse method