add logger checks