complete redesign for scripts
Needed to remove all static methods and fields to make dynamic class loading work.