add webservice interface, improve data aggregation process