will not try to auth several time and more pep8