first MTS rewrite

pre-debug