moved code to mmd dir