fixed the parsing of the result from the server, now all works