use updated api for copying