make types serializable