checkconnection added