update messages from api.