compatibility with scala 2.9.x