changed refitems to implement Serializable for saving