fixed some bugs with saving and returning the class array