optimizeserver class