add more log and socket timeout