fix
added concept of parent account and type to account model