controls export template substitution working