cubemaking updated to use new read_class