mod to allow comple unions at least with reading. probably broke writing. Needs compiling/testing.