fix incorrect type for VR
add save to stream method