add while to server