changes made  to fix lost packet and disk full