[wip] refactor to unify dropbox and local login system