logtuning
marginal refactoring