core.cc nearly compiles