new command implemented mdtm and small set of bug fixes