initial import of https://code.google.com/p/ken-cc/, r28