making things serializable