fixed: login-promise-problem
added: module-export, if loaded as module