adding serialization of Bezier splines