added cleanup option for chunks