fix undefined reload
add timeout for connection sockets