added dmenurc check