add exception for classBuilder