moved network to single file & implemented new xml logic