Use rdmd in generate script