trying to fix cas problems . . .