support for spark 1.0.0 (scala 2.10)