logging, tidy, pep8