added boolean to sanitize and/or log
sanitizer fix