security and performance fix for connection_check