ensure that values go through serialize