fixed chain copies, off by ones, etc