merge statistics
copy and re-number indices in bulk data for merging
remove dead code