switch on scala 2.10.4