draft of play-java version of the backend