used npm badwords and fixed exception logging