cg: clean local.h a bit