try catch for import