check connection on start