refactoring: log + indentation