changed export to work with chunks