simple (de)serialization of Remote Procedure Calls