unify taint handling in scripts