network needs to hangle socket more frequently (every second) and rest of program takes place every 10sec