added loop timer to server-check function