addding log tracing