small specialization, better name for serialize