server-side script to accumulate data