added serialize method
0.0.13