saving networks functionality