make it work for Scala 2.10