move the mmd command check into the module