-> fix the issue that the head is not compilable bc. of missing declaration -> optimize if/else block in connection function. Else not needed bc. of break in if
-> fix the issue that the head is not compilable bc. of missing declaration -> optimize if/else block in connection function. Else not needed bc. of break in if