import and adopt libdiscid