handling saving server array to file correctly