adding feature to add more columns to pextract call
simplifying tstr_to_tindex function