added basic REST communication to client