refactor import_class ref