add logging level instead of bool