bug fix for new addaccount function