functional client & optimized server