cleanup; needs wallet rpc