logging and \b replacements