make dynamic cmid and consultid calls