Adapt web to changes in the API (re #36)