r16 support, using new dthread macros