base class for import hook