added some debug message to diagnose copy errors more clearly