extensive changes to have working end to end transfer of chunks