fixed cache class generation