first commit of MaGate 2.0