fix scripts due to changes in the response format from the server