initial codebase from code.google.com/p/libbessie