adds file type detection for thor files