adding changes to fully support AVRO UNIONs
adding changes to fully support AVRO UNIONs