got finalize and genwallet working