port to Scala 2.10 and sbt