a serializable version of Task