implementing mgcep sub functions