added dope menu functions