Look at the line read in the file list to at least have the string "root" in it before trying to add to the chain...