improved log tracing and after operation