import and adopt mtdev