import and adopt libmimic
write watchfile for libmimic