refactor log
simplify initializer