wrote data collection agent assuming state function
resolved merge conflicts for data collections