working on restart connection