fix memory leak
add logger set
adding trace