fixed missing self reference in get_connection. Added more debug logging.
fixed calling method signature connect->connection. Added more debug logging.