doing the import into a thread