updates in handling accounts, status
updated logging, tests