split varv -> serialized_var and raw_var