added transaction confirmation
made rsrc_qtys invariants and fixed an ID bug