update rpcgen
minor fix
remove duplicate code
make ~Future() protected, not private