add logging out