made all the stages serializable