adding timout calc to server