working resetting the connection if the connection drops and starting the transfer from where it stopped. Need more debugging ans testing.