refactored for new simple logger