improved ping timing and fixed buffer files
fixed possible deadlock and minial refactoring
counting only bytes in GET reads