simple datalogging works