Dummy memset bug fixed (segfault in main).
minor bug in network fixed, found bug in establish connection function, workaround tbd