start of epidat parsing code