add some debug log for two files
add socket timeout