added parsing of each data sample before sending