moved serialize back to process_tools
moved serialize back to process_tools