redifined tree, add accounts app, add logging etc