moving all static functions into the generator class as hidden methods