translate: rework register tracking