added error handling to folder import transform