post log refactoring