fix server callback prototype