update for better speed with auto login