trying to fix server hang