activate scala mode