added scala mode and rtm