changing InvalidDataException to RTE, per cypof