is_connected() and bugfix