add smudge and clean scripts