sane thread parsing