server code change - data save in file after receiving certain amount of packets and new folder structure