added the ability to insert into chunks