adg: use proper API for segment copying