finish unifying thread register handling in preparation for porting