added clever script handler class