added validate_connection faature