we should check that the server is returning a dictionary