wait for the server before changing the model