fix server creation