more network code & starting rewrite of UI code.