removed log flush