scripts were missing a variable