trying to get better error messages on copy