cloned rikaikun from https://code.google.com/p/rikaikun