adding a flag to import for error handling