mapper made serializable