chunk id sent changes and some logging additions