corrected class def for script