bugfixed tb_connection