update copy script to include generating stats.json