a few bug fixed, added connection number
a few bug fixed, added connection number