modified to get data collection off sock working