changing jobpacket to serializable