modified: checkConnection every 1sec