remove dependency from mainctrl