check connection every time