gpg+rpc in/out fix