fixed zillions of compiler errors