included error handling for import