Scala migration: phase1 done