made tbs connections more robust