extended epidat parsing code