updated LogicHandler for MegaBrain
Merge remote-tracking branch 'origin/master'