magne tank source code