self.class to get class instance vars was not the best choice