better use of Akka