migration from deprecated scala actor model to akka actor model