better nonascii and logging