wrap imports in try...catch