added option to copy indices when doing node copy