improved network behavior, many fixes