let the thread do all the parsing of xml files in background