better error handling in export