port to lang-scala 0.2.0-SNAPSHOT