compatibility with scala 2.11