mode variable uses pickles, this will ease up the rest of the class transformation