preventing duplicated errors when importing them?