rewrote methods from jersy to akka handling