import and adopt libextractor