add serialize method for job wrap