adapt code to Manuel's server (new routes model, exchange put/post,
better responses)