dispatch done, invoke rewritten
macro for declaring RD_* variables