fix timeout
fix timeout issue
improve access to file
improve access to socket