prevent installing the import hook more than once