logging the toggles
added check for logs