server algo skin complete; next are split input, bucket and output