add socket reconnection
add test of parallel of error-tolerance function