draft for MST.py