fixed serious bug in mds ownership
fix not-checking bug in TopFlagger
fixing style and prints