add register trace