added LogicHandler for MegaBrain