replacing how serverTypeKey and classPrefix work