added ability to register public accounts and send funds to a public account