fork from code.google.com/p/scalaris/