extract dmenu from base class