import and adopt mhash
write watchfile for mhash