import existing code from https://onki-light.googlecode.com/svn/onki-legacy-api/