added serialization of processes