moved keepAlive to external_login