Changed network library

added many changes