small refactoring for logging dill