harden script modified