activity dia part 1
connection handling improvements